/**
 * @Description:  雷达管理API
 * @Author:       zhengxu
 * @Date: 2021-11-10 09:59:36
 * @LastEditors:  zhengxu
 * @LastEditTime: 2021-11-10 15:50:24
 */

import { service as request, BasePath } from '../request'

/**
  * 新增雷达信息
  * @params data 雷达数据
  * @returns {Object} Promise
  */
export const addRadarInfo = (data) => request({
  url: `${BasePath}/radarinfo`,
  method: 'POST',
  data
})
/**
  * 修改雷达信息
  * @params data 雷达数据
  * @returns {Object} Promise
  */
export const editRadarInfo = (data) => request({
  url: `${BasePath}/radarinfo`,
  method: 'PUT',
  data
})
